import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {Student} from './models/student.entity';
// 将Student的服务注入进模块
import { StudentService } from './student.service';
import { StudentResolver } from './student.resolver';

@Module({
    imports:[TypeOrmModule.forFeature([Student])],
    providers:[StudentService, StudentResolver],
    exports:[StudentService],
})
export class StudentModule {}